﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using SGP;

namespace AnimationEditor
{
    public class Frame
    {
        public string CurrentEvent;

        public Point EventPoint = new Point(0,0);

        public Point ShoulderPoint = new Point(0,0);

        private System.Drawing.Rectangle SourceRect;

        public System.Drawing.Rectangle SourceRect1
        {
            get { return SourceRect; }
            set { SourceRect = value; }
        }
        private System.Drawing.Rectangle CollisionRect;

        public System.Drawing.Rectangle CollisionRect1
        {
            get { return CollisionRect; }
            set { CollisionRect = value; }
        }

        private int Index;

        public int Index1
        {
            get { return Index; }
            set { Index = value; }
        }

        public override string ToString()
        {
            int CurrentIndex = Index + 1;
            return "Frame: " + CurrentIndex.ToString();
        }

        public Point AnchorPoint = new Point();
 
        //Duration
        private float FrameDuration = 0.5f;

        public float FrameDuration1
        {
            get { return FrameDuration; }
            set { FrameDuration = value; }
        } 
        
    }
}
